home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: string search?
- Date: Fri, 29 Mar 96 19:15:18 GMT
- Organization: none
- Distribution: world
- Message-ID: <828126918snz@genesis.demon.co.uk>
- References: <4jc6ae$eol@voyager.eng.gulfaero.com> <4jdot7$eb0@sparcserver.lrz-muenchen.de>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4jdot7$eb0@sparcserver.lrz-muenchen.de>
- watzka@stat.uni-muenchen.de "Kurt Watzka" writes:
-
- >swofford@voyager.eng.gulfaero.com (Van Swofford) writes:
- >>Ricardo Mor <rmor1@ix.netcom.com> wrote:
- >>> How can I search for a string of characters within another string?
- >
- >>The Microsoft C documentation indicates that strstr is ANSI compliant,
- >>but not available under UNIX.
- >
- >Well, if it is a function from the _standard_ C library, and if it is
- >not available under UNIX, then obviously all UNIX implementations are
- >non-ANSI implementations. This might be wrong, afaik :-)
-
- This probably means that it is not a Unix defined function - but that's
- obvious because it is an ANSI defined function. POSIX.1 is a requirement
- for a UNIX(tm) system which in turn requires ANSI C. So at least for the
- last few years years a UNIX(tm) system *must* support strstr().
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-